package com.ruoyi.exam.mapper;

import java.util.List;

import com.ruoyi.exam.domain.entity.TWrongQuestion;
import com.ruoyi.exam.domain.entity.exentity.WrongQuestionDailyStatDTO;
import com.ruoyi.exam.domain.entity.exentity.WrongQuestionStatDTO;

/**
 * 错题本Mapper接口
 *
 * @author ruoyi
 * @date 2024-12-27
 */
public interface TWrongQuestionMapper {
    /**
     * 查询错题本
     *
     * @param id 错题本主键
     * @return 错题本
     */
    public TWrongQuestion selectTWrongQuestionById(Long id);

    /**
     * 查询错题本列表
     *
     * @param tWrongQuestion 错题本
     * @return 错题本集合
     */
    public List<TWrongQuestion> selectTWrongQuestionList(TWrongQuestion tWrongQuestion);

    /**
     * 新增错题本
     *
     * @param tWrongQuestion 错题本
     * @return 结果
     */
    public int insertTWrongQuestion(TWrongQuestion tWrongQuestion);

    /**
     * 修改错题本
     *
     * @param tWrongQuestion 错题本
     * @return 结果
     */
    public int updateTWrongQuestion(TWrongQuestion tWrongQuestion);

    /**
     * 删除错题本
     *
     * @param id 错题本主键
     * @return 结果
     */
    public int deleteTWrongQuestionById(Long id);

    /**
     * 批量删除错题本
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTWrongQuestionByIds(Long[] ids);

    public List<WrongQuestionStatDTO> selectWrongQuestionStatistics();
    public List<WrongQuestionDailyStatDTO> selectWrongQuestionDailyStatistics();



}
